package com.ysy.factory;

import com.ysy.api.LeafFeignApi;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;

public class LeafFeignApiImpl implements FallbackFactory<LeafFeignApi> {
    private static final Logger log = LoggerFactory.getLogger(LeafFeignApiImpl.class);

    @Override
    public LeafFeignApi create(Throwable cause) {
        log.error("leaf服务调用失败:{}", cause.getMessage());
        // TODO 返回定义
        return null;
    }
}
